package it.sevenbits.view;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/req")
public class HelloController {
    /*protected final Logger logger = Logger.getLogger(getClass());
    ResourceBundle bundle = null;
    private String namefile;
    
    public HelloController() {
        bundle = ResourceBundle.getBundle("logging");
        namefile = bundle.getString("logging.log4j");
        PropertyConfigurator.configure(namefile);
    }

    public ModelAndView handleRequest(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        logger.info("Returning hello view");
        return new ModelAndView("index.jsp");
    }
    */
    
    
    @ResponseBody
    public String printWelcome() {

            
            return "hello";
    }

}
